import pickle
testFile = open('pickle.txt', 'w')
testDict = {'name':'chen ZHE', 'gender':'male'}
pickle.dump(testDict, testFile)
testFile.close()

testFile = open('pickle.txt', 'r')
print pickle.load(testFile)
testFile.close()

key = 'got'
print {'alerty':(lambda: 2+1), 'got':(lambda: 1+1), 'one':(lambda: 3**3)}['one']()
